package as.service.impl;

import java.util.List;

import as.dao.TeacherDAO;
import as.entity.Teacher;
import as.exception.ValidateException;
import as.service.TeacherService;

public class TeacherServiceImpl implements TeacherService {

	private TeacherDAO teacherDAO;
	
	
	
	public TeacherDAO getTeacherDAO() {
		return teacherDAO;
	}



	public void setTeacherDAO(TeacherDAO teacherDAO) {
		this.teacherDAO = teacherDAO;
	}



	public void saveTeacher(Teacher teacher) {

		this.teacherDAO.saveTeacher(teacher);

	}



	public List<Teacher> findAllTeachersByCourseId(long id) {

		return this.teacherDAO.findAllTeachersByCourseId(id);
	}


	public void removeTeacher(Teacher teacher){
		this.teacherDAO.removeTeacher(teacher);
	}

	public void RemoveTeacheList(List<Teacher> list) {
		this.teacherDAO.RemoveTeacheList(list);
	}



	public Teacher findTeacherById(long id) {
		return this.teacherDAO.findTeacherIs(id);
	}

}
